const express = require("express");
const app = express();
const cors = require("cors")
const router = require("./router/router.js")
app.use(cors())
app.use(express.json()) // for parsing application/json
app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded
app.get("/",(req,res)=>{
    console.log("成功")
    res.send("1")
    
})

app.use(router)
app.listen(3200,()=>{
    console.log("连接成功");
})